package com.ye.spring.proxy;

import org.springframework.stereotype.Component;

@Component
public class CalculatorImpl implements Calculator{

    @Override
    public int add(int a, int b) {

        try {
            System.out.println("add 方法执行中");
            return a + b;
        } catch (Exception e) {
            e.printStackTrace();
        } finally {

        }
        return 0;
    }
}
